import request from "@/utils/request";

export function getObj(path, params) {
	return request({
		url: path,
		method: "get",
		params,
	});
}

export function addObj(path, data) {
	return request({
		url: path,
		method: "post",
		data,
	});
}

export function delObj(path,params) {
	return request({
		url: path,
		method: "delete",
		params
	});
}

export function putObj(path, params) {
	return request({
		url: path,
		method: "put",
		params,
	});
}
